package com.grape.demo20220803.web;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author pan_jin
 * @Description: $
 * @Date: 2022/8/10 10:13
 * @Version: 1.0.0
 * @Slogan: 梦想还是要有的万一实现了呢
 */
@RestController
@RequestMapping("/api")
public class ApiController {

    @GetMapping("/checkVersion/{id}")
    @Operation(summary = "检测版本")
    public String checkVersion(@Parameter(description = "id of the user.") @PathVariable("id") long id) {
        return id + "";
    }
}
